<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"
        name="viewport">
  <title>浩然金融中心管理平台</title>
  <#include "/common/tablib.html">
  <style type="text/css">
    body {
      margin-top: 0px;
    }
  </style>
</head>
<body>
<div id="tabs">
  <ul>
    <li class="tabTag open"><a href="#tabs-1">角色权限分配</a></li>
  </ul>
  <div id="tabs-1">
    <iframe frameborder=0 height="100%" scrolling=yes scrolling=auto src="/security/to-securityAssign?type=role"
            width="100%"></iframe>
  </div>
  <div id="tabs-2">
    <iframe frameborder=0 height="100%" scrolling=yes scrolling=auto src="" width="100%"></iframe>
  </div>
</div>
<script type="text/javascript">
    (function () {
        $("#tabs").tabs();
        var h = $(window).height();
        $("iframe").css("height", h - 80);
        $(".tabTag").click(function () {
            var num = $(this).index();
            var oid = $(this).attr("class");
            //判断是否存在自己指定的id，没有则插入id，并根据num打开相应的页面
            if ($(this).hasClass("open") == false) {
                $(this).addClass("open");
                switch (num) {
                    case 1 :
                        $("#tabs-2 iframe").attr("src", "/security/to-securityAssign?type=user");
                        break;
                }
            }
        });
    })();
</script>
</body>
</html>
